import fetch from '@/config/fetch'

export const login = data => fetch('/admin/login', data, 'POST')

export const register = data => fetch('/api/v1/user/register', data, 'POST')

export const signout = () => fetch('/admin/singout')

export const getAdminInfo = () => fetch('/admin/info')
